<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	{{include file="../Common/header.html"}}
	<link rel="stylesheet" href="Public/Home/Css/question.css" />
	<script type="text/javascript" src="Public/Home/Js/question.js"></script>
<!-- top 结束-->
	<div id='location'>
		<a href="">全部分类</a>
			&gt;&nbsp;电脑&nbsp;&nbsp;
			&gt;&nbsp;<a href="">硬件</a>&nbsp;&nbsp;
	</div>

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<div class='ans-state {{if $askData.solve==0}}wait{{/if}}'></div>
					<div class='answer'>
						<p class='ans-title'>{{$askData.content}}
							<b class='point'>{{$askData.reward}}</b>
						</p>
					</div>
					<ul>
						<li><a href="">{{$askData.username}}</a></li>
						<li><i class='level lv{{$askData.lv}}' title='Level {{$askData.lv}}'></i></li>
						<li>{{$askData.time|date_format:"%Y-%m-%d"}}</li>
					</ul>
					<!--1.必须登陆，2.必须没有被解决，3.必须不是自己的问题-->
					{{if $smarty.session.uid && $smarty.session.uname && $askData.accept==0 && $smarty.session.uid!=$askData.uid}}
					<div class='ianswer'>
						<form action="{{'Ask/answer'|U}}&asid={{$smarty.get.asid}}" method='POST'>
							<p>我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='qid' value=''>
							<input type="submit" value='提交回答' id='anw-sub'/>
						</form>
					</div>
					{{/if}}
					<!-- 满意回答 -->
					{{if $askAccept }}
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						<p class='ans-cons'>很不错！</p>
						<dl>
							<dt>
								<a href=""><img src="Public/Home/Images/noface.gif" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href="">用户</a>
							</dd>
							<dd><i class='level lv1'></i></dd>
							<dd>20%</dd>
						</dl>
					</div>
					{{/if}}
					<!-- 满意回答 -->
				</div>
				
				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong>{{$askData.total}}</strong> 条回答</p>
					<ul>
					{{section loop=$answerData name=n}}
						<li>
							<div class='face'>
								<a href="">
									<img src="Public/Home/Images/noface.gif" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								
								<p>{{$answerData[n].content}}<span style='color:#888;font-size:12px'>&nbsp;&nbsp;({{$answerData[n].time|date_format:"%Y-%m-%d"}})</span></p>
							</div>
							{{if $smarty.session.uid && $smarty.session.uname && $askData.solve==0 && $askData.uid==$smarty.session.uid}}
								<a href="{{"accept"|U}}&uid={{$answerData[n].uid}}&asid={{$answerData[n].asid}}&anid={{$answerData[n].anid}}" class='adopt-btn'>采纳</a>
							{{/if}}
						</li>
					{{/section}}
					
					</ul>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
						{{section loop=$questionData name=top }}
						<tr>
							<td class='t1'><a href="index.php?c=Ask&asid={{$questionData[top].asid}}">{{$questionData[top].content}}</a></td>
							<td>{{$questionData[top].answer}}&nbsp;回答</td>
							<td>{{$questionData[top].time|date_format:"%Y-%m-%d"}}</td>
						</tr>
						{{/section}}
					</table>
				</div>
			</div>
		<!-- 右侧 -->
		{{include file="./../common/right.html"}}
<!-- ---右侧结束---- -->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

	{{*引入尾部*}}
	{{include file="./../common/footer.html"}}